There is no point in splitting out a function that has one caller
and sets a single property.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2380>
return false;
}
- _updateSliderIcon() {
+ _portChanged() {
+ const hasHeadphones = this._findHeadphones(this._stream);
+ if (hasHeadphones === this._hasHeadphones)
+ return;
+
+ this._hasHeadphones = hasHeadphones;
this._icon.icon_name = this._hasHeadphones
? 'audio-headphones-symbolic'
: 'audio-speakers-symbolic';
}
-
- _portChanged() {
- let hasHeadphones = this._findHeadphones(this._stream);
- if (hasHeadphones != this._hasHeadphones) {
- this._hasHeadphones = hasHeadphones;
- this._updateSliderIcon();
- }
- }
};
var InputStreamSlider = class extends StreamSlider {